package com.yl.imdriving.utils;

import android.app.Activity;
import android.graphics.Point;
import android.os.Build;
import android.view.Display;

public class CommonUtils {
	public static void getDisplaySize(Activity a, Point size) {
		Display dis = a.getWindowManager().getDefaultDisplay(); 
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {
			dis.getSize(size);
		}else {
			size.x = dis.getWidth();
			size.y = dis.getHeight();	
		}
	}
}
